Optimal. Leaf size=166 \[ \frac {d (f x)^{1+m} \left (a+c x^{2 n}\right )^p \left (1+\frac {c x^{2 n}}{a}\right )^{-p} \, _2F_1\left (\frac {1+m}{2 n},-p;1+\frac {1+m}{2 n};-\frac {c x^{2 n}}{a}\right )}{f (1+m)}+\frac {e x^{1+n} (f x)^m \left (a+c x^{2 n}\right )^p \left (1+\frac {c x^{2 n}}{a}\right )^{-p} \, _2F_1\left (\frac {1+m+n}{2 n},-p;\frac {1+m+3 n}{2 n};-\frac {c x^{2 n}}{a}\right )}{1+m+n} \]
[Out]
________________________________________________________________________________________
Rubi [A]
time = 0.06, antiderivative size = 166, normalized size of antiderivative = 1.00, number of steps
used = 7, number of rules used = 4, integrand size = 24, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.167, Rules used = {1575, 372, 371,
20} \begin {gather*} \frac {d (f x)^{m+1} \left (a+c x^{2 n}\right )^p \left (\frac {c x^{2 n}}{a}+1\right )^{-p} \, _2F_1\left (\frac {m+1}{2 n},-p;\frac {m+1}{2 n}+1;-\frac {c x^{2 n}}{a}\right )}{f (m+1)}+\frac {e x^{n+1} (f x)^m \left (a+c x^{2 n}\right )^p \left (\frac {c x^{2 n}}{a}+1\right )^{-p} \, _2F_1\left (\frac {m+n+1}{2 n},-p;\frac {m+3 n+1}{2 n};-\frac {c x^{2 n}}{a}\right )}{m+n+1} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
Rule 20
Rule 371
Rule 372
Rule 1575
Rubi steps
\begin {align*} \int (f x)^m \left (d+e x^n\right ) \left (a+c x^{2 n}\right )^p \, dx &=\int \left (d (f x)^m \left (a+c x^{2 n}\right )^p+e x^n (f x)^m \left (a+c x^{2 n}\right )^p\right ) \, dx\\ &=d \int (f x)^m \left (a+c x^{2 n}\right )^p \, dx+e \int x^n (f x)^m \left (a+c x^{2 n}\right )^p \, dx\\ &=\left (e x^{-m} (f x)^m\right ) \int x^{m+n} \left (a+c x^{2 n}\right )^p \, dx+\left (d \left (a+c x^{2 n}\right )^p \left (1+\frac {c x^{2 n}}{a}\right )^{-p}\right ) \int (f x)^m \left (1+\frac {c x^{2 n}}{a}\right )^p \, dx\\ &=\frac {d (f x)^{1+m} \left (a+c x^{2 n}\right )^p \left (1+\frac {c x^{2 n}}{a}\right )^{-p} \, _2F_1\left (\frac {1+m}{2 n},-p;1+\frac {1+m}{2 n};-\frac {c x^{2 n}}{a}\right )}{f (1+m)}+\left (e x^{-m} (f x)^m \left (a+c x^{2 n}\right )^p \left (1+\frac {c x^{2 n}}{a}\right )^{-p}\right ) \int x^{m+n} \left (1+\frac {c x^{2 n}}{a}\right )^p \, dx\\ &=\frac {d (f x)^{1+m} \left (a+c x^{2 n}\right )^p \left (1+\frac {c x^{2 n}}{a}\right )^{-p} \, _2F_1\left (\frac {1+m}{2 n},-p;1+\frac {1+m}{2 n};-\frac {c x^{2 n}}{a}\right )}{f (1+m)}+\frac {e x^{1+n} (f x)^m \left (a+c x^{2 n}\right )^p \left (1+\frac {c x^{2 n}}{a}\right )^{-p} \, _2F_1\left (\frac {1+m+n}{2 n},-p;\frac {1+m+3 n}{2 n};-\frac {c x^{2 n}}{a}\right )}{1+m+n}\\ \end {align*}
________________________________________________________________________________________
Mathematica [A]
time = 0.11, size = 136, normalized size = 0.82 \begin {gather*} \frac {x (f x)^m \left (a+c x^{2 n}\right )^p \left (1+\frac {c x^{2 n}}{a}\right )^{-p} \left (d (1+m+n) \, _2F_1\left (\frac {1+m}{2 n},-p;1+\frac {1+m}{2 n};-\frac {c x^{2 n}}{a}\right )+e (1+m) x^n \, _2F_1\left (\frac {1+m+n}{2 n},-p;\frac {1+m+3 n}{2 n};-\frac {c x^{2 n}}{a}\right )\right )}{(1+m) (1+m+n)} \end {gather*}
Antiderivative was successfully verified.
[In]
[Out]
________________________________________________________________________________________
Maple [F]
time = 0.06, size = 0, normalized size = 0.00 \[\int \left (f x \right )^{m} \left (d +e \,x^{n}\right ) \left (a +c \,x^{2 n}\right )^{p}\, dx\]
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Fricas [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Sympy [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________
Mupad [F]
time = 0.00, size = -1, normalized size = -0.01 \begin {gather*} \int {\left (a+c\,x^{2\,n}\right )}^p\,{\left (f\,x\right )}^m\,\left (d+e\,x^n\right ) \,d x \end {gather*}
Verification of antiderivative is not currently implemented for this CAS.
[In]
[Out]
________________________________________________________________________________________